<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
</head>
<body>
<script type="text/javascript">
	// console.log('Show toString()');
	// var a = 1;
	// var b = a.toString();
	// console.log(a+1);
	// console.log(b+1);

	var c = 0;
	function sum(a,b){
		console.log('11111');
		c = a +b;
		return c;
		console.log('被return拦截了');
	}

	sum(3,4);
	console.log(c);

	var obj ={
		name:'张三',
		age:19,
		sex:'man'
	};

	obj.txt = 'Hello!';

	obj1 = new Object();
	obj1.firstname = 'Bill';
	obj1.lastname = 'Gates';
	obj1.age = 56;
	obj1.eyecolor = 'blue';

	var message = "Hello World!";
	var x = message.toUpperCase();

	for(var i in obj){
		console.log(obj[i]);
	}

	var xxx = function(){
		var obj1 = {
		name:'李四',
		age:19,
		sex:'man',
		other:'匿名函数演示'
		// console.log('对象、匿名函数、混合调用实战演练效果很不理想基本不会')
		};
		console.log('对象、匿名函数、混合调用实战演练效果很不理想基本不会');
		console.log('原因分析：对象、方法调用、函数之间的关系概念模糊');
	};

	xxx();


	var obj2 ={
		name:'张三',
		age:19,
		sex:'man',
		run:function (){
			console.log('跑得真快！');
		},
		inObj2:{
			first:1,
			second:2,
			third:3
		}
	};
	obj2.run();

	console.log(obj2.inObj2.third);

	var a =true;
	console.log(typeof a);
	console.log(typeof a.toString());

	var d = 'fsadshcdkjgUbfdsjhadhfgbjls';
	console.log(d.toUpperCase());
    console.log(d.toLowerCase());
</script>
</body>
</html>